package com.mx.zb.mng.dao;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.mx.zb.mng.bo.Agent;
import com.mx.zb.mng.utils.db2.Page;

@Mapper
public interface AgentMapper {
    int deleteByPrimaryKey(String id);

    int insert(Agent record);

    int insertSelective(Agent record);

    Agent selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Agent record);

    int updateByPrimaryKey(Agent record);

	List<Agent> findByParams(String param);
    
    Page<Agent> queryPage(Agent record);

	List<Agent> findAll();

	List<Agent> findByCheck(Agent a);
    
    String queryMaxLevelCode(Map map);
    
    int upActiveByPrimaryKey(String id);

	Agent findAgent(Agent a);
	
	Agent findByPhone(Agent a);

	Agent findAgentByLevelCode(Agent agt);

	List<Agent> findAgentList(Agent agt);

	List<Agent> findAgentGroupByDate(Map map);
	
	List<Map> findAgentGroupByYear(Map map);

	Agent findAgents(Agent agt);

	Page<Agent> queryDetailPage(Agent o);
	
	List<LinkedHashMap> findParents(Agent o);

	Page<Agent> queryPage1(Agent o);

	
    
}